package com.cykj.pos.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.apache.commons.lang3.StringUtils;
import com.cykj.pos.mapper.CustomerCashBackTempMapper;
import com.cykj.pos.domain.CustomerCashBackTemp;
import com.cykj.pos.service.ICustomerCashBackTempService;

import java.util.List;
import java.util.Map;

/**
 * 商户刷满返现模板Service业务层处理
 *
 * @author weijianbo
 * @date 2025-03-19
 */
@Service
public class CustomerCashBackTempServiceImpl extends ServiceImpl<CustomerCashBackTempMapper, CustomerCashBackTemp> implements ICustomerCashBackTempService {

    @Override
    public List<CustomerCashBackTemp> queryList(CustomerCashBackTemp customerCashBackTemp) {
        LambdaQueryWrapper<CustomerCashBackTemp> lqw = Wrappers.lambdaQuery();
        if (StringUtils.isNotBlank(customerCashBackTemp.getTempName())){
            lqw.like(CustomerCashBackTemp::getTempName ,customerCashBackTemp.getTempName());
        }
        return this.list(lqw);
    }
}
